<?php
/**
 * Notes:
 * User: LiaoHong
 * Date: 2025/10/22
 * Time: 10:39
 **/


namespace App\Http\Controllers\User;

use App\Http\Controllers\Controller;
use App\Services\User\LogManageService;
use Illuminate\Http\Request;

class LogManageController extends Controller
{

    /** @var LogManageService */
    private LogManageService $logManageService;

    public function __construct(LogManageService $service)
    {
        $this->logManageService = $service;
    }
    /**
     * @Notes:操作日志
     * @author: Liao Hong
     * @Time: 2025/10/22   11:41
     * @Interface actionLog
     */
    public function actionLog(Request $request)
    {
       $params = $request->input();
       return success($this->logManageService->actionLog($params));
    }

    /**
     * @Notes:登录日志
     * @author: Liao Hong
     * @Time: 2025/10/22   11:41
     * @Interface loginLog
     */
    public function loginLog(Request $request)
    {
        $params = $request->input();
        return success($this->logManageService->loginLog($params));
    }

}
